@import "./common.css";
@import "./base.css";

/* 设计图为750px的每份的px */
@baseFont: 50px;

/* top-banner */
.top-banner {
  position: relative;
  width: 15rem;
  height: 100rem / @baseFont;
  a {
    display: block;
    width: 100%;
    img {
      display: block;
      width: 100%;
    }
  }
  i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50rem / @baseFont;
    height: 50rem / @baseFont;
    background: url(../images/close.png) no-repeat center center;
    background-size: 30rem / @baseFont auto;
  }
}
/* top-banner结束 */
/* header */
header.header {
  width: 100%;
  padding: 0 34rem / @baseFont;
  background-color: #ffdb47;
  .header-top {
    width: 100%;
    height: 88rem / @baseFont;
    display: flex;
    justify-content: space-between;
    align-items: center;
    a:nth-child(1),
    a:nth-child(3) {
      width: 36rem / @baseFont;
      height: 60rem / @baseFont;
      img {
        display: block;
        width: 100%;
      }
    }
    a:nth-child(2) {
      display: block;
      width: 450rem / @baseFont;
      height: 55rem / @baseFont;
      // margin-right: 1rem;
      img {
        display: block;
        height: 100%;
      }
    }
  }
  .header-search {
    position: relative;
    width: 100%;
    height: 92rem / @baseFont;
    // padding: 0 24rem / @baseFont;
    a {
      position: absolute;
      width: 100%;
      height: 100%;
      i {
        position: absolute;
        top: 50%;
        left: 20rem / @baseFont;
        width: 36rem / @baseFont;
        height: 36rem / @baseFont;
        transform: translateY(-50%);
        background: url('../images/search_btn.png') no-repeat 0 0;
        background-size: 36rem / @baseFont auto;
      }
    }
    form {
      display: flex;
      width: 100%;
      height: 100%;
      justify-content: center;
      align-items: center;
      input {
        width: 100%;
        height: 64rem / @baseFont;
        padding-left: 65rem / @baseFont;
        padding-right: 20rem / @baseFont;
        border: none;
        border-radius: 32rem / @baseFont;
        font-size: 28rem / @baseFont;
      }
    }
  }
}
/* header结束 */
/* banner */
.banner {
  width: 15rem;
  height: 260rem / @baseFont;
  padding: 0 24rem / @baseFont;
  background:url('../images/banner_bg.png') no-repeat 0 0;
  background-size: 15rem auto;
  ul {
    position: relative;
    width: 702rem / @baseFont;
    height: 260rem / @baseFont;
    border-radius: 20rem / @baseFont;
    overflow: hidden;
    li {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 20rem / @baseFont;
      overflow: hidden;
      a {
        display: block;
        width: 100%;
        height: 100%;
        img {
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
/* banner结束 */
/* nav导航开始 */
nav.nav {
  float: left;
  width: 15rem;
  height: 308rem / @baseFont;
  padding: 0 24rem / @baseFont;
  a {
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 20%;
    height: 142rem / @baseFont;
    i {
      width: 84rem / @baseFont;
      height: 84rem / @baseFont;
      background: url('../images/nav_01.png') no-repeat;
      background-size: 84rem / @baseFont auto;
    }
    span {
      color: #666;
      font-size: 16rem / @baseFont;
    }
  }
}
/* nav导航结束 */
/* 新人专区 */
.new {
  width: 15rem;
  height: 234rem / @baseFont;
  display: flex;
  a:nth-child(1) {
    flex: 2;
  }
  a:nth-child(2),
  a:nth-child(3) {
    flex: 1;
    margin-left: 2rem / @baseFont;
  }
  a {
    height: 100%;
    img {
      display: block;
      width: 100%;
      height: 100%;
    }
  }
}
/* 新人专区结束 */
/* 推荐专区 */
.recommend {
  width: 15rem;
  margin-top: 10rem / @baseFont;
  padding: 0 24rem / @baseFont;
  .title-image {
    // height: 60rem / @baseFont;
    a {
      display: block;
      width: 100%;
      overflow: hidden;
      img {
        width: 100%;
        display: block;
      }
    }
  }
  .content {
    display: flex;
    .recommend-common {
      position: relative;
      flex: 1;
      height: 266rem / @baseFont;
      background-color: #fff;
      border-radius: 10rem / @baseFont;
      margin-right: 10rem / @baseFont;
      img:nth-child(1) {
        box-sizing: content-box;
        display: block;
        width: 150rem / @baseFont;
        height: 150rem / @baseFont;
        margin: 15rem / @baseFont 38rem / @baseFont 0;
      }
      .bg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
      }
      p.tips {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 158rem / @baseFont;
        width: 100%;
        margin: 0;
        height: 34rem / @baseFont;
        span {
          font-size: 20rem / @baseFont;
          min-width: 100rem / @baseFont;
          max-width: 200rem / @baseFont;
          color: #d9a87a;
          background-color: #fff;
          border: 1rem / @baseFont solid #d9a87a;
          border-radius: 34rem / @baseFont;
          text-align: center;
        }
      }
      p.which {
        position: relative;
        width: 100%;
        height: 32rem / @baseFont;
        font-size: 26rem / @baseFont;
        line-height: 32rem / @baseFont;
        margin: 31rem / @baseFont auto 3rem / @baseFont;
        color: #fff;
        text-align: center;
        overflow: hidden;
      }
      .description {
        position: relative;
        width: 4rem;
        height: .48rem;
        line-height: .48rem;
        font-size: .44rem;
        margin: 0 auto;
        color: #FFFFFF;
        opacity: .8;
        text-align: center;
        overflow: hidden;
      }
      &:nth-child(3) {
        margin-right: none;
      }
    }
  }
}
/* 推荐专区结束 */